package edu.tgc.service.teaching;

import java.util.List;
import java.util.UUID;

import org.abyss.common.service.CommonCrudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import edu.tgc.entity.teaching.TbParticipant;
import edu.tgc.repository.teching.ParticipantRepository;
@Service
public class ParticipantService extends CommonCrudService<TbParticipant, UUID> {
	@Autowired
	private ParticipantRepository participantDAO;
	
	public void delete1(UUID id) {
		participantDAO.delete(id);
	}
	public List<TbParticipant> participantPage(UUID enrollId, Sort sort) {
		List<TbParticipant> list=participantDAO.findByEnrollId(enrollId,sort);
		return list;
	}

}
